package JDBCTemplate;

import DataSourse.utils.JDBCUtils;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @Author: ylc
 * @Description:JDBCTempplate的简单使用
 * @Date Created in 2022-05-10 15:07
 */
public class JDBCTemplateDemo1 {
    public static void main(String[] args) {
        JdbcTemplate template = new JdbcTemplate(JDBCUtils.getDataSource());
        String sql = "update emp set salary = ? where ename = ?";
        int count = template.update(sql, 14000, "叶良承");
        System.out.println(count);
    }

}
